if __name__ == '__main__':
    try:
        s = Student('Lucy')
        pass
    except NameError as err:
        print('this is NameError:',err)
    except Exception as err:
        print('this is Exception:',err)
    else:
        print('如果没有异常就执行此处的代码')
    finally:
        print('不管是否有异常都会执行此处的代码')